<{include file="top.tpl"}>
<script type="text/javascript">
function login(){
	<{if $webstate!=1}>
	if(xajax.$('username').value==""){
		alert('请输入登录用户名');
		xajax.$('username').focus();
		return false;
	}
	<{/if}>
	if(xajax.$('passwd').value==""){
		alert('请输入密码');
		xajax.$('passwd').focus();
		return false;
	}
	if(xajax.$('authnum').value==""){
		alert('请输入验证码');
		xajax.$('authnum').focus();
		return false;
	}
	
	xajax.$('submit').disabled = true;
	xajax_login(<{if $webstate!=1}>xajax.$("username").value<{else}>0<{/if}>,xajax.$("passwd").value,xajax.$("authnum").value);
	return false;
}
</script>
<div id="mainWrapper">
<center>
<div class="messagebox">
  <div class="messagebox-title">后台登录</div>
  <div class="messagebox-content">
    
    <form name="adminlogin" method="post" action="javascript:void(null);" style="display: inline">
    <{if $webstate!=1}>请输入管理用户名：<input type="text" id="username" name="username" class="text" />&nbsp;<br/><{/if}>
    请输入管理密码：<input type="password" id="passwd" name="passwd" class="text" />&nbsp;<br/>
    请输入右边的验证码：<input name="authnum" size="5" maxlength="5" type="text" class="text" />
        <script>document.write("<s"+"cript src='/<{$virdir}>include/makecode.php?id=1' type='text/javascript' language='javascript'></s"+"cript>")</script>
    <input type="button" id="submit" name="submit" value=" 登录 " class="button" onclick="login();"/>
    </form>
    
  </div>
  </tr>
</div>
</center>
</div>
<{include file="foot.tpl"}>